package com.liyy.platform.service;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by liyy on 2018/4/17.
 */

@Component
public class ContractProxySupplyServiceFallback implements ContractProxySupplyService {

    @Override
    public List getContractProxySupplyList(String goodsName, String goodsBrand, String goodsAttr, int pageNo, int pageSize) {
        List errorlist=new ArrayList();
        Map params=new HashMap();
        params.put("state","请求失败");
        params.put("message","请您稍后再次尝试访问");
        errorlist.add(params);
        return errorlist;
    }

    @Override
    public Map testBody(Map map) {
        return null;
    }

}
